package com.srxz.personnelsystem.system.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: Department
 * @author: wgchao
 * @createTime: 2019/1/23 3:28 PM
 * @Description: 部门类
 */
@Entity
@Table
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department implements Serializable {
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "id")
    private String id;

    @Column
    private String name;//部门名称

    @Column(name = "parent_code")
    private String parentcode;//部门上级编号

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "create_user")
    private String createUser;

    @Column(name = "last_update_time")
    private Date lastUpdateTime;

    @Column(name = "last_update_user")
    private String lastUpdateUser;

    @Column(name = "delete_time")
    private Date deleteTime;

    @Column(name = "delete_user")
    private String deleteUser;
}
